<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>增加小类</title>
    <link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css">

</head>
<body>
<!-- 顶栏 -->
<div th:replace="seller/topp"></div>
<!-- 中间主体 -->
<div class="container" id="content">
    <div class="row">
        <div th:replace="seller/menu::menu"></div>
        <div class="col-md-10">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <div class="row">
                        <h2  align="center" style="..." th:text="'编辑'+${item.itemId}+'的信息'"> </h2>
                    </div>
                </div>
                <div class="panel-body">
                    <form class="form-horizontal" role="form" th:action="@{'itemEdit?itemId='+${item.itemId}}" th:object="${item}" id="editfrom" method="post">

                        <!--itemId-->
                        <div class="form-group">
                            <label for="itemId" class="col-sm-2 control-label">itemId</label>
                            <div class="col-sm-10">
                                <input disabled="disabled" readonly="readonly"  type="text" class="form-control" id="itemId"  name="itemId" th:placeholder="${item.itemId}">
                            </div>
                        </div>

                        <!--productId-->
                        <div class="form-group">
                            <label for="productId" class="col-sm-2 control-label">productId</label>
                            <div class="col-sm-10">
                                <input disabled="disabled" type="text" class="form-control" id="productId"  name="produceId" th:placeholder="${item.product.productId}">
                            </div>
                        </div>

                        <!--listPrice-->
                        <div class="form-group">
                            <label for="listPrice" class="col-sm-2 control-label">listPrice</label>
                            <div class="col-sm-10">
                                <input type="text"  onkeyup="value=value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'')" class="form-control" id="listPrice"  name="listPrice" th:placeholder="${item.listPrice}">
                            </div>
                        </div>

                        <!--unitCost--->
<!--                        <div class="form-group">-->
<!--                            <label for="unitCost" class="col-sm-2 control-label">unitCost</label>-->
<!--                            <div class="col-sm-10">-->
<!--                                <input type="text"  onkeyup="value=value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'')"  class="form-control" id="unitCost"  name="unitCost" th:placeholder="${item.unitCost}">-->
<!--                            </div>-->
<!--                        </div>-->

                        <!--supplierId-->
                        <div class="form-group">
                            <label for="supplierId" class="col-sm-2 control-label">supplierId</label>
                            <div class="col-sm-10">
                                <input type="tetx" class="form-control" id="supplierId"  name="supplierId" th:placeholder="${item.supplierId}">
                            </div>
                        </div>

                        <!--status-->
                        <div class="form-group">
                            <label for="status" class="col-sm-2 control-label">status</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="status"  name="status" th:placeholder="${item.status}">
                            </div>
                        </div>

                        <!--atrribute1-->
                        <div class="form-group">
                            <label for="attribute1" class="col-sm-2 control-label">attribute1</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="attribute1"  name="attribute1" th:placeholder="${item.attribute1}">
                            </div>
                        </div>

                        <!--attribute2-->
                        <div class="form-group">
                            <label for="attribute2" class="col-sm-2 control-label">attribute2</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="attribute2"  name="attribute2" th:placeholder="${item.attribute2}">
                            </div>
                        </div>

                        <!--attribute3-->
                        <div class="form-group">
                            <label for="attribute3" class="col-sm-2 control-label">attribute3</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="attribute3"  name="attribute3" th:placeholder="${item.attribute3}">
                            </div>
                        </div>

                        <!--attribute4-->
                        <div class="form-group">
                            <label for="attribute4" class="col-sm-2 control-label">attribute4</label>
                            <div class="col-sm-10">
                                <input  type="text" class="form-control" id="attribute4"  name="attribute4" th:placeholder="${item.attribute4}">
                            </div>
                        </div>

                        <!--attribute5-->
                        <div class="form-group">
                            <label for="attribute5" class="col-sm-2 control-label">attribute5</label>
                            <div class="col-sm-10">
                                <input  type="text" class="form-control" id="attribute5" name="attribute5" th:placeholder="${item.attribute5}">
                            </div>
                        </div>

                        <!--quantity-->
                        <div class="form-group">
                            <label for="quantity" class="col-sm-2 control-label">quantity</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="quantity"  name="quantity" th:placeholder="${item.quantity}">
                            </div>
                        </div>

                        <div class="form-group" style="text-align: center">
                            <button class="btn btn-default" type="submit">提交</button>
                            <button class="btn btn-default" type="reset">重置</button>

                        </div>
                        <div th:text="${msg}" ></div>
                    </form>
                </div>

            </div>

        </div>
    </div>
</div>
</div>
</body>

</html>